﻿@model ALinq.BBS.Models.RegisterModel
@using System.Web.Mvc.Html
@using ALinq.BBS.App_GlobalResources
@{
    Layout = "_LayoutBase.cshtml";
    PageData["Title"] = "Register";
    PageData["Styles"] = new[] { Url.Content("~/Content/Css/Register.css") };
}
<style type="text/css">
    #header
    {
        width: 800px;
    }
    #footer
    {
        width: 800px;
    }
    .validation-summary-errors ul li
    {
        width:730px;
    }
</style>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<div class="pageTitle" style="width: 760px">
    @Label.Register
</div>
@using (Html.BeginForm())
{
    <div style="width: 760px; text-align:left;">
        @Html.ValidationSummary(true)
    </div>
    <table style="width: 760px; background-color: #FFFBFF" cellspacing="0" cellpadding="0">
        <tr>
            <td class="register_label" align="right" style="width: 180px; height: 36px;">
                @Html.LabelFor(o => o.UserName)@Label.Colon
            </td>
            <td class="register_item" style="height: 36px; width: 150px">
                @Html.TextBoxFor(o => o.UserName)
            </td>
            <td class="register_item" style="width: 20px; height: 36px;">
                &nbsp;
            </td>
            <td class="register_item" style="text-align: left">
                @Html.ValidationMessageFor(o => o.UserName)
            </td>
        </tr>
        <tr>
            <td class="register_label" align="right">
                @Html.LabelFor(o => o.Email)@Label.Colon
            </td>
            <td class="register_item">
                @Html.TextBoxFor(o => o.Email, new { Class = "email" })
            </td>
            <td class="register_item">
                &nbsp;
            </td>
            <td class="register_item" style="text-align: left">
                @Html.ValidationMessageFor(o => o.Email)
            </td>
        </tr>
        <tr>
            <td class="register_label" align="right">
                @Html.LabelFor(o => o.Password)@Label.Colon
            </td>
            <td class="register_item">
                @Html.PasswordFor(o => o.Password)
            </td>
            <td class="register_item">
                &nbsp;
            </td>
            <td class="register_item" style="text-align: left">
                @Html.ValidationMessageFor(o => o.Password)
            </td>
        </tr>
        <tr>
            <td class="register_label" align="right">
                @Html.LabelFor(o => o.ConfirmPassword)@Label.Colon
            </td>
            <td class="register_item">
                @Html.PasswordFor(o => o.ConfirmPassword)
            </td>
            <td class="register_item">
                &nbsp;
            </td>
            <td class="register_item" style="text-align: left">
                @Html.ValidationMessageFor(o => o.ConfirmPassword)
            </td>
        </tr>
        @*        <tr>
            <td class="register_label" align="right">
                @Label.PasswordQuestion @Label.Colon
            </td>
            <td class="register_item">
                @Html.TextBoxFor(o => o.PasswordQuestion)
            </td>
            <td class="register_item">
            </td>
            <td class="register_item" style="text-align: left">
                @Html.ValidationMessageFor(o => o.PasswordQuestion)
            </td>
        </tr>
        <tr>
            <td class="register_label" align="right">
                @Label.PasswordAnswer @Label.Colon
            </td>
            <td class="register_item">
                @Html.TextBoxFor(o => o.PasswordAnswer)
            </td>
            <td class="register_item">
                &nbsp;
            </td>
            <td class="register_item" style="text-align: left">
                @Html.ValidationMessageFor(o => o.PasswordAnswer)
            </td>
        </tr>*@
    </table>
    <input type="submit" style="width:200px;margin-top:10px;" value="@Label.RegisterNow" />
}
